package com.bus.common.util;

import java.util.Properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

//@Configuration
//@ConfigurationProperties
//@PropertySource("classpath:config/meeting/meeting.properties")
public class PropertyConfig {

	private static Properties directive;

	public Properties getDirective() {
		return directive;
	}

	public void setDirective(Properties directive) {
		PropertyConfig.directive = directive;
	}

//	@Bean(name = "propertyUtils")
	public PropertyUtils propertyUtils() {
		PropertyUtils propertyUtils = new PropertyUtils();
		propertyUtils.setProperties(directive);
		return propertyUtils;
	}

}
